package com.quyeying.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 礼物领取记录表
 * </p>
 *
 * @author jll
 * @since 2022-12-16
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_gift_receive")
public class TblGiftReceiveEntity extends Model<TblGiftReceiveEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 礼物订单id
     */
    private Long fromId;

    /**
     * 子订单id
     */
    private Long toId;

    /**
     * 是否已读 0未读  1已读
     */
    private Integer isRead;

    /**
     * 领取人
     */
    private Long recetiveUser;

    /**
     * 留言
     */
    private String leaveMsg;

    /**
     * 领取时间
     */
    private Date receiveTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
